import 'package:flutter/material.dart';

class ScrollCase extends StatelessWidget {
  const ScrollCase({super.key});

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      scrollDirection: Axis.vertical,
      child: Column(
        children: [
          for (var i = 0; i < 10; i++)
            Container(
              margin: const EdgeInsets.all(10),
              width: double.infinity,
              height: 100,
              color: Colors.red,
              child: Text('$i'),
            ),
        ],
      ),
    );
  }
}